From: Jasper St. Pierre Date: Tue, 4 Sep 2012 22:03:47 +0000 (-0300) Subject: messageTray: Move close button above notification widget stack X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5940 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=eda17defb2ab559f21964f02aec7424e5b3cb760;p=gnome-shell.git messageTray: Move close button above notification widget stack This allows us to click on the entire close button, not just the part of it that's unobscured. --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 31fa470a3..1f1593dcc 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1204,7 +1204,6 @@ const SummaryItem = new Lang.Class({ this.emit('done-displaying-content'); })); - this.notificationStackWidget.add_actor(this._closeButton); this.notificationStackView = new St.ScrollView({ style_class: source.isChat ? '' : 'summary-notification-stack-scrollview', vscrollbar_policy: source.isChat ? Gtk.PolicyType.NEVER : Gtk.PolicyType.AUTOMATIC, hscrollbar_policy: Gtk.PolicyType.NEVER }); @@ -1213,6 +1212,7 @@ const SummaryItem = new Lang.Class({ vertical: true }); this.notificationStackView.add_actor(this.notificationStack); this.notificationStackWidget.add_actor(this.notificationStackView); + this.notificationStackWidget.add_actor(this._closeButton); this._stackedNotifications = []; this._oldMaxScrollAdjustment = 0;